package com.spring.annotation;

import java.lang.annotation.*;


/**
 *  @author: zheng
 *  @Date: 2020-06-05 10:04
 *  @Description:自定义注解Transactional
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Transactional {

    Class<?> rollbackFor() default Exception.class;
}
